var worker = new Worker('worder.js');

worker.onmessage = function(event){
    worker.getElementById('result').textContent = event.data;
}